﻿using System.Collections;
using IceDog.DNF.Program.WebApi2.Models;

namespace IceDog.DNF.Program.WebApi2.Repository
{
    interface IContactRepository
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        IEnumerable GetAllContacts();
        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Contact GetContact(string id);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        Contact AddContact(Contact item);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool RemoveContact(string id);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        /// <param name="item"></param>
        /// <returns></returns>
        bool UpdateContact(string id, Contact item);
    }
}
